import 'dart:ui';

import 'package:flutter/material.dart';

/// 我的投递界面
class MyDelivery extends StatefulWidget {
  var name;
  var age;

  MyDelivery({
    var name,
    var age,
  })  : this.name = name,
        this.age = age;

  @override
  State<StatefulWidget> createState() => MyDeliveryWidget();
}

class MyDeliveryWidget extends State<MyDelivery> {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        elevation: 0.5,
        title: new Text(
          widget.name + "---" + widget.age,
          style: TextStyle(color: Colors.black, fontSize: 18),
        ),
        centerTitle: true,
        brightness: Brightness.light,
        backgroundColor: Colors.white,
//        leading: Icon(Icons.arrow_back_ios),
        iconTheme: IconThemeData(color: Colors.black),
        actions: <Widget>[
          new Container(
            padding: EdgeInsets.fromLTRB(0, 0, 15, 0),
            child: new Column(
              mainAxisAlignment: MainAxisAlignment.center,
              mainAxisSize: MainAxisSize.max,
              children: <Widget>[
                new Text(
                  "删除",
                  style: TextStyle(
                    color: Colors.black,
                    fontSize: 16,
                  ),
                  textAlign: TextAlign.center,
                )
              ],
            ),
          )
        ],
      ),
      body: new ListView(
        children: <Widget>[],
      ),
    );
  }
}
